<rss version="2.0" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
    <channel>
        <title>Global Internet Business Solutions ~ GIBS</title> 
        <link>https://gibs.com</link> 
        <description>RSS feeds for Global Internet Business Solutions ~ GIBS</description> 
        <ttl>60</ttl> <item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/331/nopCommerce_SQL_Query_for_Top_10_Gross_Sales_Days#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=331</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=331&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>nopCommerce SQL Query for Top 10 Gross Sales Days</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/331/nopCommerce_SQL_Query_for_Top_10_Gross_Sales_Days</link> 
    <description>Declare @current_utc_offset int

IF &amp;nbsp;ServerProperty(&amp;#39;EngineEdition&amp;#39;) &amp;gt;= 5

Begin

set @current_utc_offset = (select &amp;nbsp;convert(int, left(current_utc_offset,3)) AS current_utc_offset from sys.time_zone_info Where Name = &amp;#39;US Eastern Standard Time&amp;#39;)

End

PRINT @current_utc_offset
SELECT TOP 10 SUM([OrderTotal]) as totalSales, Count([Id]) AS Orders, &amp;nbsp;dateadd(hour, @current_utc_offset, dateadd(hour, datediff(hour, 0, convert(date, [CreatedOnUtc])), 0))

FROM [dbo].[Order]

GROUP BY dateadd(hour, @current_utc_offset, dateadd(hour, datediff(hour, 0, convert(date, [CreatedOnUtc])), 0))

ORDER BY SUM([OrderTotal]) desc
</description> 
    <dc:creator>Webmaster</dc:creator> 
    <pubDate>Tue, 04 Feb 2025 15:26:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:331</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/332/nopCommerce_SQL_Query_for_Top_10_Sales_Days#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=332</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=332&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>nopCommerce SQL Query for Top 10 Sales Days</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/332/nopCommerce_SQL_Query_for_Top_10_Sales_Days</link> 
    <description>Declare @current_utc_offset int

IF &amp;nbsp;ServerProperty(&amp;#39;EngineEdition&amp;#39;) &amp;gt;= 5

Begin

set @current_utc_offset = (select &amp;nbsp;convert(int, left(current_utc_offset,3)) AS current_utc_offset from sys.time_zone_info Where Name = &amp;#39;US Eastern Standard Time&amp;#39;)

End

PRINT @current_utc_offset
SELECT TOP 10 SUM([OrderTotal]) as totalSales, Count([Id]) AS Orders, &amp;nbsp;dateadd(hour, @current_utc_offset, dateadd(hour, datediff(hour, 0, convert(date, [CreatedOnUtc])), 0))

FROM [dbo].[Order]

GROUP BY dateadd(hour, @current_utc_offset, dateadd(hour, datediff(hour, 0, convert(date, [CreatedOnUtc])), 0))

ORDER BY SUM([OrderTotal]) desc
</description> 
    <dc:creator>Webmaster</dc:creator> 
    <pubDate>Tue, 04 Feb 2025 15:26:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:332</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/328/nopCommerce_-_Deleting_Guest_Accounts#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=328</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=328&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>nopCommerce - Deleting Guest Accounts</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/328/nopCommerce_-_Deleting_Guest_Accounts</link> 
    <description>Deleting guest account from Customer table:

SQL Query

DELETE Customer
FROM Customer
LEFT OUTER JOIN [Order] ON Customer.Id = [Order].CustomerId
WHERE ([Order].Id IS NULL) AND (Customer.Email IS NULL)

delete guest account - nopCommerce
</description> 
    <dc:creator>Webmaster</dc:creator> 
    <pubDate>Sun, 12 Jan 2025 10:01:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:328</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/4/Azure_SQL_uses_Greenwich_Mean_Time#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=4</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=4&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Azure SQL uses Greenwich Mean Time</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/4/Azure_SQL_uses_Greenwich_Mean_Time</link> 
    <description>// AZURE SQL USES GREENWICH MEAN TIME . . . Azure SQL Database does not support time zone settings;&amp;nbsp;it always follows UTC. Use AT TIME ZONE in SQL Database if you need to interpret date and time information in a non-UTC time zone.

Declare @current_utc_offset int

IF&amp;nbsp; ServerProperty(&amp;#39;EngineEdition&amp;#39;) &amp;gt;= 5

Begin

set @current_utc_offset = (select&amp;nbsp; convert(int, left(current_utc_offset,3)) AS current_utc_offset from sys.time_zone_info Where Name = &amp;#39;US Eastern Standard Time&amp;#39;)

End

&amp;nbsp;

Then I use this information to adjust the query data

&amp;nbsp;

SELECT&amp;nbsp; dateadd(hour, @current_utc_offset, dateadd(hour, datediff(hour, 0, [CreatedOnDate]), 0)) as TimeStampHour

&amp;nbsp;

Complete Query Used for report:

&amp;nbsp;

IF&amp;nbsp; ServerProperty(&amp;#39;EngineEdition&amp;#39;) &amp;gt;= 5

Begin

set @current_utc_offset = (select&amp;nbsp; convert(int, left(current_utc_offset,3)) AS current_utc_offset from sys.time_zone_info Where Name = &amp;#39;US Eastern Standard Time&amp;#39;)

End

&amp;nbsp;

&amp;nbsp;

if(@ServiceLocation=&amp;#39;0&amp;#39; or @ServiceLocation is null)

begin

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set @ServiceLocation=null;

end

&amp;nbsp;

SELECT&amp;nbsp; dateadd(hour, @current_utc_offset, dateadd(hour, datediff(hour, 0, [CreatedOnDate]), 0)) as TimeStampHour

, Count(*) AS ClientsServed

FROM&amp;nbsp; [GIBS_FBClientsVisits]

where

&amp;nbsp;&amp;nbsp;( [CreatedOnDate]

&amp;nbsp;&amp;nbsp;&amp;nbsp; BETWEEN @StartDate

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and @EndDate)

&amp;nbsp; &amp;nbsp; and&amp;nbsp; (@ServiceLocation is null or GIBS_FBClientsVisits.ServiceLocation=@ServiceLocation)

GROUP BY dateadd(hour, datediff(hour, 0, [CreatedOnDate]), 0)

ORDER BY dateadd(hour, datediff(hour, 0, [CreatedOnDate]), 0)

&amp;nbsp;
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Thu, 23 May 2024 17:59:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:4</guid> 
    
</item>
<item>
    <comments>https://gibs.com/Support/Knowledge-Base/ID/13/Getting_Eastern_Standard_Time_from_Azure_SQL#Comments</comments> 
    <slash:comments>0</slash:comments> 
    <wfw:commentRss>https://gibs.com/DesktopModules/DnnForge%20-%20NewsArticles/RssComments.aspx?TabID=51&amp;ModuleID=411&amp;ArticleID=13</wfw:commentRss> 
    <trackback:ping>https://gibs.com:443/DesktopModules/DnnForge%20-%20NewsArticles/Tracking/Trackback.aspx?ArticleID=13&amp;PortalID=0&amp;TabID=51</trackback:ping> 
    <title>Getting Eastern Standard Time from Azure SQL</title> 
    <link>https://gibs.com/Support/Knowledge-Base/ID/13/Getting_Eastern_Standard_Time_from_Azure_SQL</link> 
    <description>Declare @todays_date Date
set @todays_date = CAST(SYSDATETIMEOFFSET() AT TIME ZONE &amp;#39;Eastern Standard Time&amp;#39; AS date)

For example, if you want the current date and time as a datetime value like GETDATE() does, do this:

CAST(SYSDATETIMEOFFSET() AT TIME ZONE &amp;#39;Eastern Standard Time&amp;#39; AS datetime)

If you want the current date and time as a datetime2 value like SYSDATETIME() does, do this:

CAST(SYSDATETIMEOFFSET() AT TIME ZONE &amp;#39;Eastern Standard Time&amp;#39; AS datetime2)

And if you just want the current date, you can do this:

CAST(SYSDATETIMEOFFSET() AT TIME ZONE &amp;#39;Eastern Standard Time&amp;#39; AS date)
</description> 
    <dc:creator></dc:creator> 
    <pubDate>Tue, 03 Nov 2020 16:20:00 GMT</pubDate> 
    <guid isPermaLink="false">f1397696-738c-4295-afcd-943feb885714:13</guid> 
    
</item>

    </channel>
</rss>